namespace Excerise;

public class Stu
{
    public string StuName { get; set; }

    public int CId { get; set; }

    //全参构造
    public Stu(string stuName, int cId)
    {
        StuName = stuName;
        CId = cId;
    }

    //重写ToString方法
    public override string ToString()
    {
        return $"学生姓名: {StuName},班级编号: {CId}";
    }
}